Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development


Object names and types

This section describes properties that provide information about types and names.

ObjectType

This CHARACTER property, available for all SmartObjects, returns the generic SmartObject class name for the object. For example: SmartWindow™, SmartDataObject, SmartDataViewer, SmartDataBrowser™, SmartDataField, and so on.

ObjectName

The ObjectName property is the unique instance name of the object for that container, or it defaults to the actual procedure file without path and extension. In the case where an object is used more than once, this can have a numeric digit added to it to distinguish among different instances, or its instance name can be changed by the developer in assembling the container.

PhysicalObjectName

This CHARACTER property, available for all SmartObjects, returns the name of the procedure file executed to run the object, including the filename extension, but not including its relative pathname. For a static object, this is the name of the object procedure, such as custviewer.w. For a dynamic object, it returns the name of the driver procedure that instantiates objects of that type. For example, it returns rydynviewv.w for dynamic viewers and rydyncontw.w for dynamic windows, and so on.

LogicalObjectName

This CHARACTER property returns the logical name of the object, which is its name as represented in the Repository. For a dynamic object, this is the name the object was given when it was created, either by the Object Generator, or by a developer using the AppBuilder. This property can be blank for objects running without a repository.

For example, it could be custbrowsewin for a dynamic window or customerfullb for a dynamic SmartDataBrowser.

ContainerType

This CHARACTER property, available for all SmartObjects, indicates whether the object is a container or not, and if so, what kind of container it is. For noncontainer objects such as Browsers and SDOs, its value is blank. For viewers and SmartFrames™, it returns FRAME. For SmartWindows, it returns WINDOW. For non-visual container objects such as SBOs, it returns VIRTUAL.

Note: Remember that SmartDataViewers are considered containers because you can drop field-level objects, such as SmartDataFields, into them.

QueryObject

This LOGICAL property, available for all SmartObjects, returns TRUE if the object manages a query. In other words, it returns TRUE for SDOs and SBOs and FALSE for all other standard objects.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095